package hu.diploma.web.client.proxies;

import hu.diploma.web.client.service.WebGroupServiceAsync;
import hu.diploma.web.shared.webvos.GroupWebVo;

import java.util.List;

import com.extjs.gxt.ui.client.data.LoadConfig;
import com.extjs.gxt.ui.client.data.RpcProxy;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class GroupProxy extends RpcProxy<List<GroupWebVo>> {

	@Override
	protected void load(Object loadConfig, AsyncCallback<List<GroupWebVo>> callback) {
		long deviceId = ((LoadConfig) loadConfig).get("deviceId");
		WebGroupServiceAsync.Util.getInstance().loadByDevice(deviceId, callback);

	}

}
